package model

type User struct {
	IDModel
	Account  string `json:"account" form:"account" validate:"required" name:"账号"`
	Password string `json:"password" form:"password" validate:"required" name:"密码"`
	NickName string `json:"nickName" form:"nickName" name:"昵称"`
	Address  string `json:"address" form:"address"`
	img      string `json:"img" form:"img"`
	Gender   int    `json:"gender" form:"gender"`
	Phone    string `json:"phone" form:"phone"`
	Age      int    `json:"age" form:"age"`
}

// TableName 数据库 表名
func (User) TableName() string {
	return "user"
}
